import request from '../../request'

const USER = '/system/user'

export default {
  register: input => {
    return request({
      desc: '注册新用户',
      method: 'post',
      url: `${USER}/register`,
      data: input
    })
  },
  login: input => {
    return request({
      desc: '用户登录',
      method: 'post',
      url: `${USER}/login`,
      data: input
    })
  }
}
